From cff211ea1f50a9dcb1617eb27939df8e9fac5a73 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 30 Aug 2020 22:25:56 -0400 Subject: [PATCH] migration guide: Mention button hierarchy changes --- docs/reference/gtk/migrating-3to4.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/reference/gtk/migrating-3to4.md b/docs/reference/gtk/migrating-3to4.md index 665d5bcd8f..27e6ead12c 100644 --- a/docs/reference/gtk/migrating-3to4.md +++ b/docs/reference/gtk/migrating-3to4.md @@ -490,6 +490,17 @@ as property. GtkNotebook and GtkAssistant are similar. gtk4-builder-tool can help with this conversion, with the --3to4 option of the simplify command. +### Adapt to button class hierarchy changes + +#GtkCheckButton is no longer derived from #GtkToggleButton. Call +gtk_check_button_set_active() instead of gtk_toggle_button_set_active(). + +#GtkRadioButton has been removed, and its grouping functionality has +been added to #GtkCheckButton and #GtkToggleButton. Use grouped +check buttons for traditional radio groups, and used grouped toggle +buttons for view switchers. The new API to set up groups of buttons +is gtk_check_button_set_group() and gtk_toggle_button_set_group(). + ### Adapt to GtkScrolledWindow API changes The constructor for GtkScrolledWindow no longer takes the adjustments -- 2.30.2